<include file="Admin@Public:header" />
<!-- end nav -->

<!-- begin container -->

<div class=" container-fuid ">

	<div class="row">
		<div class="col-lg-12 col-md-12 col-xs-12" style="background-color: #FFF;">

			<!-- begin tab -->
			<ul class="nav nav-tabs " >
				<li class="active">
					<a href="{:U('Food/Admin/cate')}" > <b>商品分类</b>
					</a>
				</li>
				<li>
					<a href="{:U('Food/Admin/add_cate')}" > <b>分类增加</b>
					</a>
				</li>
			</ul>
			<!-- end 添加 -->

			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>分类名</th>
						<th>排序</th>
						<th>操作</th>

					</tr>
				</thead>
				<tbody>
					<volist name="foodcatlist" id="vo">
						<tr>
							<td>{$vo.fcid}</td>
							<td>{$vo.fcname}</td>
							<td>{$vo.fcsort}</td>
							<td>

								<a  href="{:U('Food/Admin/edit_cate','id='.$vo['fcid'])}" > <i class="fa fa-edit"></i>
									修改
								</a>
								<a  href="{:U('Food/Admin/del_cate','id='.$vo['fcid'])}">
									<i class="fa fa-trash-o"></i>
									删除
								</a>

							</td>

						</tr>
					</volist>
				</tbody>
			</table>

		</div>
		<!-- tab1 -->

	</div>
	<!-- col end -->

</div>

<!-- end container -->

<!-- /.modal -->

<include file="Admin@Public:foot" />

<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->

<script src="__ROOT__/Public/js/jquery.js"></script>
<script src="__ROOT__/Public/js/bootstrap.min.js"></script>
<script >
	
	$('#myModal').on('hidden.bs.modal', function (e) {
	location.reload()

})
$('#ajax').on('hidden.bs.modal', function (e) {
	location.reload()

})


function delcfm() {
if (!confirm("确认要删除？")) {
window.event.returnValue = false;
}
}
</script>